//
//  HYHttps.h
//  HaiYue
//
//  Created by skyline on 2018/6/19.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef  void(^complete)(id response);
typedef void(^fail) (NSDictionary *dict);
typedef void(^callback) (NSURLSessionDataTask * task, id response);
typedef void(^progressNum) (NSProgress *num);
@interface HYHttps : NSObject
//+ (void)get:(NSString *)api para:(id)para complete:(complete)complete fail:(fail)fail;
//+ (void)post:(NSString *)api para:(id)para complete:(complete)complete fail:(fail)fail;
//+ (void)post:(NSString *)api para:(id)para completeWithTask:(callback)callback fail:(fail)fail;
//+(void)upload:(NSString *)api para:(id)para image:(UIImage *)image progress:(progressNum )progress complete:(complete)complete fail:(fail)fail;
@end
